Replication files for the paper 

"How do researchers choose their goals of inference? A survey experiment on the effects of the state of research and method preferences on the choice between research goals"

Published in Research and Politics
by
Felix Bethke (ORCID: https://orcid.org/0000-0002-4259-6071)
Ingo Rohlfing (ORCID: https://orcid.org/0000-0001-8715-4771)

For all comments and questions on the analysis, please get in contact with Ingo Rohlfing.

The analysis is based on the preanalysis plan deposited on OSF: https://doi.org/10.17605/OSF.IO/PEBQZ


File organization
The reproduction material has three folders and two files. The three folders are:
- code
- data
- output

The folder data has three subfolders:
- EU
- USA
- textdata

The two files are 
- logfile.log: Stata log-file documenting the execution of the code on December 4, 2022, 17:07.
- README.txt: The README file (this file)

The working directory for the reproduction of the results should include the three folders and their subfolders with all files as they are deposited in the Dataverse repository.
The repository contains all files that are imported by the do-files and are stored and produced by the do-files when they are executed. When a file is stored or exported that exists already in a folder, it will be overwritten.


Code execution
All results can be reproduced by executing the do-file 0.master.do. The do-file:
- creates the log-file logfile.log in the working directory
- executes the do-file 1dataprep.do
- executes the do-file 2analysis.do

The do-file 1dataprep.do reads the following files from the folder data/EU:
- BEfull4.xlsx
- CHfull4.xlsx
- DEfull4.xlsx
- DKfull1.csv
- DKfull2.xlsx
- DKfull4.xlsx
- FIfull4.xlsx
- ITfull4.xlsx
- NLfull4.xlsx
- NOfull4.xlsx
- SEfull4.xlsx
- UKfull4.xlsx

The do-file 1dataprep.do reads the following files from the folder data/USA:
- USfull5.xlsx

The do-file 1dataprep.do reads the following files from the folder data/textdata:
- EUtextdata.xls
- UStextdata.xls

The do-file 1dataprep.do reads the following files from the folder data:
- EUpart.csv
- responserate.csv
- USpart.csv

The do-file 1dataprep.do writes the following files to the folder data:
- BEfull4.dta
- CHfull4.dta
- DEfull4.dta
- DKfull4.dta
- EUfull4.dta
- EUpart.csv
- EUtextdata.dta
- FIfull4.dta
- fulldata.dta
- ITfull4.dta
- NLfull4.dta
- NOfull4.dta
- numberofcases.xls
- numberofcasescoded.dta
- numberofcasescoded.xls
- othermethod.xls
- othermethodcoded.dta
- othermethodcoded.xls
- responserate.csv
- responserate.dta
- SEfull4.dta
- statusother.xls
- statusothercoded.dta
- statusothercoded.xls
- textdata.dta
- UKfull4.dta
- USAfull4.dta
- UStextdata.dta

The do-file 2analysis.do reads the following files from the folder data:
- fulldata.dta
- responserate.dta

The do-file 2analysis.do writes the following files to the folder output:
- fig2.gph
- fig2m1.gph
- fig2m2.gph
- fig2m3.gph
- fig3.gph
- fig3m1.gph
- fig3m2.gph
- fig3m3.gph
- figA1.gph
- figA10.gph
- figA10m1.gph
- figA10m2.gph
- figA10m3.gph
- figA11.gph
- figA11m1.gph
- figA11m2.gph
- figA11m3.gph
- figA12.gph
- figA12m1.gph
- figA12m2.gph
- figA12m3.gph
- figA13.gph
- figA13m1.gph
- figA13m2.gph
- figA13m3.gph
- figA1m1.gph
- figA1m2.gph
- figA1m3.gph
- figA2.gph
- figA2b.gph
- figA2bm1.gph
- figA2bm2.gph
- figA2bm3.gph
- figA2m1.gph
- figA2m2.gph
- figA2m3.gph
- figA3.gph
- figA3b.gph
- figA3bm1.gph
- figA3bm2.gph
- figA3bm3.gph
- figA3m1.gph
- figA3m2.gph
- figA3m3.gph
- figA4.gph
- figA4m1.gph
- figA4m2.gph
- figA4m3.gph
- figA5.gph
- figA5m1.gph
- figA5m2.gph
- figA5m3.gph
- figA6.gph
- figA6m1.gph
- figA6m2.gph
- figA6m3.gph
- figA7.gph
- figA7m1.gph
- figA7m2.gph
- figA7m3.gph
- figA8.gph
- figA8m1.gph
- figA8m2.gph
- figA8m3.gph
- figA9.gph
- figA9m1.gph
- figA9m2.gph
- figA9m3.gph
- figure2.tif
- figureA10.tif
- figureA11.tif
- figureA12.tif
- figureA13.tif
- figureA2.tif
- figureA3.tif
- figureA3b.tif
- figureA4.tif
- tableA1.doc
- tableA10.doc
- tableA11.doc
- tableA12.doc
- tableA13.rtf
- tableA14.rtf
- tableA15.rtf
- tableA16.doc
- tableA2.doc
- tableA3.doc
- tableA4.doc
- tableA5.doc
- tableA6.doc
- tableA7.doc
- tableA8.doc
- tableA9.doc

System settings
The do-file 0master.do was last executed on December, 4th, 2022 on a Windows 10 operating system using Stata 15.1.
